<template>
    <div>
        details id = {{id}}
        

        <!-- <router-view/> -->
    </div>
</template>

<script>
export default {
    data() {
        return {
            id:0
        }
    },
    created() {
        console.log('-------------');
        console.log(this.$route);
        // vue-router 挂载在了 vue 的原型链上
        var id = this.$route.query.id;
        this.id = this.$route.params.id;
    }
}
</script>